package mc.contents.shard;

import mc.support.orm.shard.ShardStrategy;

import java.util.Map;

/**
 * Created by LuoHui on 14-11-20.
 */
public class QianStrategy implements ShardStrategy {
    private static final String TABLE_PRE = "qn.";

    @Override
    public String shardTableName( String baseTableName, Object params, String mapperId ) {
        return getTableName( baseTableName );
    }

    private String getTableName( String baseTableName ) {
        return new StringBuilder().append( TABLE_PRE).append(baseTableName).toString();
    }
}
